package org.heima.baselistdemo.protocol;

import org.heima.baselistdemo.bean2.GeneralNewsBean;

import retrofit2.Call;

/**
 * Created by Shinelon on 2017/1/15.
 */

public class NewsProtocol extends AccessProtocol<GeneralNewsBean> {

    @Override
    protected void callNet(AccessService accessService) {
        Call<GeneralNewsBean> call = accessService.getNewsDatas();
        call.enqueue(callback);
    }
}
